﻿<%@ Page Title="Nyheder" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="news.aspx.cs" Inherits="UCNKompetenceBors.news" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="latestNewsBox" class="contentBoxLarge floatLeft">
        <div id="latestNewsBoxContent" class="floatLeft">
            <div id="latestNewsTextArea" class="floatLeft">
                <asp:Label ID="lblLatestNewsHeader" runat="server" Text="Seneste Nyhed" CssClass="contentTitle"></asp:Label>
                <br />
                <asp:Label ID="lblLatestNewsTitle" runat="server" CssClass="contentSubTitle"></asp:Label>
                <br />
                <asp:Label ID="lblLatestNewsDateAndAuthor" runat="server" Font-Italic="True" Font-Size="8pt"></asp:Label>
                <br />
                <br />
                <asp:Label ID="lblLatestNewsText" runat="server"></asp:Label>
                <br />
                <br />
                <asp:HyperLink ID="hyLinkLatestNews" runat="server" Text="Læs mere" CssClass="link"></asp:HyperLink>
            </div>
            <div id="latestNewsPicture" class="floatRight">
                <asp:Image ID="imgLatestNewsImage" runat="server" width="350px" Height="350px" />
            </div>
        </div>
    </div>

    <div id="newsArchivePaginationTop" class="contentBoxLarge newsArchivePagination floatLeft">
        <div class="newsArchivePaginationContent">
            <div class="floatLeft">
                <asp:Panel ID="panTopPagination" runat="server"></asp:Panel>
            </div>
            <div class="floatRight">
                <asp:Label ID="lblResultsPerPage" runat="server" Text="Resultater pr. side: "></asp:Label>
                <asp:DropDownList ID="ddlResultsPerPage" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlResultsPerPage_SelectedIndexChanged">
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>24</asp:ListItem>
                    <asp:ListItem>36</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
    </div>

    <div id="newsArchive" class="contentBoxLarge floatLeft">
        <div id="newsArchiveContent" class="floatLeft">
            <div>
                <asp:Label ID="lblNewsArchiveHeader" runat="server" Text="Nyhedsarkiv" CssClass="contentTitle"></asp:Label>
            </div>
            <asp:DataList ID="dlNewsArchive" runat="server" ItemStyle-Width="321px" ItemStyle-VerticalAlign="Top" ItemStyle-Height="150px" Width="964px" OnItemDataBound="dlNewsArchive_ItemDataBound" RepeatDirection="Horizontal" RepeatColumns="3">
                <ItemTemplate>
                    <div style="margin-bottom: 30px; margin-left:5px;">

                        <asp:Label ID="lblNewsArchiveTitle" runat="server" Text='<%# Eval("Title") %>' CssClass="contentSubTitle"></asp:Label>
                        <br />
                        <asp:Label ID="lblNewsArchiveDateAndAuthor" runat="server" Text='<%# Eval("CreatedDate", "{0:dd-MM-yyyy}") + ", " + Eval("User.UserName") %>' Font-Italic="True" Font-Size="8pt"></asp:Label>
                        <br />
                        <asp:Image ID="imgNewsArchiveImage" runat="server" ImageUrl='<%# Eval("ThumbnailURL") %>' Width="100px" Height="100px" />
                        <br />
                        <div style="height: 60px; width: 275px;">
                            <asp:Label ID="lblNewsArchiveText" runat="server" Text='<%# Eval("Text") %>'></asp:Label>
                        </div>
                        <asp:HyperLink ID="hyLinkNewsArchive" runat="server" Text="Læs mere" NavigateUrl='<%# Eval("NewsID", "~/newsDetails.aspx?nid={0}") %>' CssClass="link"></asp:HyperLink>
                    </div>
                </ItemTemplate>

            </asp:DataList>
        </div>
    </div>

    <div id="newsArchivePaginationBottom" class="contentBoxLarge newsArchivePagination floatLeft">
        <div class="newsArchivePaginationContent">
            <div class="floatLeft">
                <asp:Panel ID="panPagination" runat="server"></asp:Panel>
            </div>
        </div>
    </div>
</asp:Content>
